import { getAction, deleteAction, putAction, postAction, httpAction, getExport,pingDeleteAction } from '@/api/manage'
import Vue from 'vue'
import {UI_CACHE_DB_DICT_DATA } from "@/store/mutation-types"

//角色管理
const addRole = (params)=>postAction("/sys/role/add",params);
const editRole = (params)=>putAction("/sys/role/edit",params);
const checkRoleCode = (params)=>getAction("/sys/role/checkRoleCode",params);
const queryall = (params)=>getAction("/sys/role/queryall",params);

//用户管理
const addUser = (params)=>postAction("/sys/user/add",params);
const editUser = (params)=>putAction("/sys/user/edit",params);
const queryUserRole = (params)=>getAction("/sys/user/queryUserRole",params);
const getUserList = (params)=>getAction("/sys/user/list",params);
const frozenBatch = (params)=>putAction("/sys/user/frozenBatch",params);
//验证用户是否存在
const checkOnlyUser = (params)=>getAction("/sys/user/checkOnlyUser",params);
//改变密码
const changePassword = (params)=>putAction("/sys/user/changePassword",params);

//权限管理
const addPermission= (params)=>postAction("/sys/permission/add",params);
const editPermission= (params)=>putAction("/sys/permission/edit",params);
const getPermissionList = (params)=>getAction("/sys/permission/list",params);
const getSystemMenuList = (params)=>getAction("/sys/permission/getSystemMenuList",params);
const getSystemSubmenu = (params)=>getAction("/sys/permission/getSystemSubmenu",params);
const getSystemSubmenuBatch = (params) => getAction('/sys/permission/getSystemSubmenuBatch', params)
const queryTreeList = (params)=>getAction("/sys/permission/queryTreeList",params);
const queryTreeListForRole = (params)=>getAction("/sys/role/queryTreeList",params);
const queryListAsync = (params)=>getAction("/sys/permission/queryListAsync",params);
const queryRolePermission = (params)=>getAction("/sys/permission/queryRolePermission",params);
const saveRolePermission = (params)=>postAction("/sys/permission/saveRolePermission",params);
const queryPermissionsByUser = ()=>getAction("/sys/permission/getUserPermissionByToken");
const loadAllRoleIds = (params)=>getAction("/sys/permission/loadAllRoleIds",params);
const getPermissionRuleList = (params)=>getAction("/sys/permission/getPermRuleListByPermId",params);
const queryPermissionRule = (params)=>getAction("/sys/permission/queryPermissionRule",params);

// 部门管理
const queryDepartTreeList = (params)=>getAction("/sys/sysDepart/queryTreeList",params);
const queryIdTree = (params)=>getAction("/sys/sysDepart/queryIdTree",params);
const queryParentName   = (params)=>getAction("/sys/sysDepart/queryParentName",params);
const searchByKeywords   = (params)=>getAction("/sys/sysDepart/searchBy",params);
const deleteByDepartId   = (params)=>deleteAction("/sys/sysDepart/delete",params);

//二级部门管理
const queryDepartPermission = (params)=>getAction("/sys/permission/queryDepartPermission",params);
const saveDepartPermission = (params)=>postAction("/sys/permission/saveDepartPermission",params);
const queryTreeListForDeptRole = (params)=>getAction("/sys/sysDepartPermission/queryTreeListForDeptRole",params);
const queryDeptRolePermission = (params)=>getAction("/sys/sysDepartPermission/queryDeptRolePermission",params);
const saveDeptRolePermission = (params)=>postAction("/sys/sysDepartPermission/saveDeptRolePermission",params);
const queryMyDepartTreeList = (params)=>getAction("/sys/sysDepart/queryMyDeptTreeList",params);

//日志管理
//const getLogList = (params)=>getAction("/sys/log/list",params);
const deleteLog = (params)=>deleteAction("/sys/log/delete",params);
const deleteLogList = (params)=>deleteAction("/sys/log/deleteBatch",params);

//数据字典
const addDict = (params)=>postAction("/sys/dict/add",params);
const editDict = (params)=>putAction("/sys/dict/edit",params);
const treeList = (params)=>getAction("/sys/dict/treeList",params);
const addDictItem = (params)=>postAction("/sys/dictItem/add",params);
const editDictItem = (params)=>putAction("/sys/dictItem/edit",params);

//字典标签专用（通过code获取字典数组）
export const ajaxGetDictItems = (code, params)=>getAction(`/sys/dict/getDictItems/${code}`,params);
//从缓存中获取字典配置
function getDictItemsFromCache(dictCode) {
  if (Vue.ls.get(UI_CACHE_DB_DICT_DATA) && Vue.ls.get(UI_CACHE_DB_DICT_DATA)[dictCode]) {
    let dictItems = Vue.ls.get(UI_CACHE_DB_DICT_DATA)[dictCode];
    console.log("-----------getDictItemsFromCache----------dictCode="+dictCode+"---- dictItems=",dictItems)
    return dictItems;
  }
}

//系统通告
const doReleaseData = (params)=>getAction("/sys/annountCement/doReleaseData",params);
const doReovkeData = (params)=>getAction("/sys/annountCement/doReovkeData",params);
//获取系统访问量
const getLoginfo = (params)=>getAction("/sys/loginfo",params);
const getVisitInfo = (params)=>getAction("/sys/visitInfo",params);

// 根据部门主键查询用户信息
const queryUserByDepId = (params)=>getAction("/sys/user/queryUserByDepId",params);

// 重复校验
const duplicateCheck = (params)=>getAction("/sys/duplicate/check",params);
// 加载分类字典
const loadCategoryData = (params)=>getAction("/sys/category/loadAllData",params);
const checkRuleByCode = (params) => getAction('/sys/checkRule/checkByCode', params)
//加载我的通告信息
const getUserNoticeInfo= (params)=>getAction("/sys/sysAnnouncementSend/getMyAnnouncementSend",params);
const getTransitURL = url => `/sys/common/transitRESTful?url=${encodeURIComponent(url)}`

// 仪表板接口
// 获取仪表盘文件层级数据接口
const getHierarchy = (params)=>postAction("/report/chartCatalog/chartCatalogList",params);
// 新建文件夹、仪表盘接口
const createMeter = (params)=>postAction("/report/chartCatalog/chartCatalogCreate",params);
// 删除文件夹、仪表盘接口
const deleteMeter = (params)=>postAction("/report/chartCatalog/chartCatalogDelete",params);
// 修改文件夹、仪表盘名称接口
const updateMeter = (params)=>postAction("/report/chartCatalog/chartCatalogUpdate",params);
// 点击仪表盘文件或者选择卡片 获取仪表盘对应的卡片所有信息(包括仪表盘卡片、卡片类型、卡片位置等等信息)
const getMeterList = (params)=>postAction("/report/chartCatalog/chartPositionList",params);
// 保存仪表盘卡片数据接口
const saveMeter = (params)=>postAction("/report/chartCatalog/chartPositionSave",params);
// 获取数据源分类接口(数据源类型层级显示)
const getDataSource = (params)=>postAction("/report/chartCatalog/confCategoryList",params);
// 根据数据源获取所对应的字段清单
const getFieldList = (params)=>postAction("/report/chartCatalog/chartDSList",params);
// 获取仪表盘历史版本集合
const getMeterHistoryList = (params)=>postAction("/report/chartCatalog/chartVersionList",params);
// 获取卡片所需的明细数据接口
const getMeterDetails = (params)=>postAction("/ds/conf/getDsDetailList",params);
// 仪表盘设置为首页，一个账号只允许有一个首页
const setHomepage = (params)=>postAction("/report/chartCatalog/defHomepageSave",params);
// 获取当前登录人首页数据
const getHomepage = (params)=>postAction("/report/chartCatalog/getUserHomepage",params);

// 基础组织结构接口
// 下拉搜索框级联 获取总部下拉信息接口
const getHeadquarters = (params)=>postAction("/basicOrganize/organize/queryOrganize",params);
// 下拉搜索框级联 选择总部获取大区下拉信息接口
const getRegion = (params)=>postAction("/basicOrganize/organize/queryOrganizeArea",params);
// 下拉搜索框级联 选择大区获取城市下拉信息接口
const getCity = (params)=>postAction("/basicOrganize/organize/queryOrganizeCity",params);
// 下拉搜索框级联 选择城市获取仓库下拉信息接口
const getWarehouse = (params)=>postAction("/basicOrganize/organize/queryOrganizeWh",params);
// 获取所有组织结构数据接口,用于’文件夹’模式显示
const getOrganizeAll = (params)=>postAction("/basicOrganize/organize/organizeAllList",params);
// 添加组织接口数据
const addOrganize = (params)=>postAction("/basicOrganize/organize/organizeAdd",params);
// 修改组织结构，只允许修改名称。等级和编码不允许修改
const editOrganize = (params)=>postAction("/basicOrganize/organize/organizeEdit",params);
// 删除组织结构, 会相应删除所有下级数据(逻辑删除)
const deleteOrganize = (params)=>postAction("/basicOrganize/organize/organizeDelete",params);
// 根据ID或父ID查询数据
const getDeatailsById = (params)=>postAction("/basicOrganize/organize/queryOrganizeEnt",params);

// 仓库配置接口
// 获取获取列表数据接口(分页)
const getWHList = (params)=>getAction("/biz/warehouseConf/list",params);
// 新增仓库配置接口
const createWH = (params)=>postAction("/biz/warehouseConf/warehouseConfCreate",params);
// 修改仓库配置
const editWH = (params)=>postAction("/biz/warehouseConf/warehouseConfUpdate",params);
// 批量删除仓库配置接口(逻辑删除)
const deleteWH = (params)=>postAction("/biz/warehouseConf/warehouseConfDelete",params);


// 综合配置接口
// 获取配置信息
const getConfig = params=>getAction('/system/config/list',params)
// 修改综合配置邮箱接口
const editConfig = params=>putAction('/basicOrganize/organize/email',params)
// 结构树
const getOrganizeTree = params=>getAction('/basicOrganize/organize/organizeTree',params)


//  融销直销接口
// 获取列表接口
const getSaleList = (params)=>getAction('/biz/saleInfo/list',params);
// 新增融销直销接口
const createSale = (params)=>postAction('/biz/saleInfo/saleInfoCreate',params);
// 修改融销直销接口
const editSale = (params)=>postAction('/biz/saleInfo/saleInfoUpdate',params);
// 批量删融销直销接口(逻辑删除)
const delSale = (params)=>postAction('/biz/saleInfo/saleInfoDelete',params);

// 仓库周报接口
// 获取仓库周报接口（分页）
const getWhweeklyList = (params)=>getAction('/biz/whweekly/list',params);
// 删除仓库周报接口
const delWhweekly = (params)=>deleteAction('/biz/whweekly/delete',params);
// 新增运营数据采集接口
const addOperation = (params)=>postAction('/biz/whweekly/operation/add',params);
// 修改运营数据采集接口
const editOperation = (params)=>putAction('/biz/whweekly/operation/update',params);
// 新增财务数据采集接口
const addFinance = (params)=>postAction('/biz/whweekly/finance/add',params);
// 修改财务数据采集接口
const editFinance = (params)=>putAction('/biz/whweekly/finance/update',params);
// 手动生成周报
const handlehweekly = (params)=>postAction('/biz/weeklyrelation/manualWeeklyData',params);

// 考勤账号配置接口
// 获取获取列表数据接口(分页)
const getCheckWork = (params)=>getAction("/biz/attendanceUser/list",params);
// 新增考勤账号接口
const addCheckWork = (params)=>postAction("/biz/attendanceUser/attendanceUserCreate",params);
// 修改考勤账号
const editCheckWork = (params)=>postAction("/biz/attendanceUser/attendanceUserUpdate",params);
// 批量删除考勤账号接口(逻辑删除)
const deleteCheckWork = (params)=>postAction("/biz/attendanceUser/attendanceUserDelete",params);

// 考勤数据接口
// 获取列表数据接口(分页)
const getCheckList = (params)=>getAction("/biz/attendance/list",params);
// 新增考勤数据接口
const addCheck = (params)=>postAction("/biz/attendance/attendanceCreate",params);
// 修改考勤数据
const editCheck = (params)=>postAction("/biz/attendance/attendanceUpdate",params);
// 批量删除考勤数据接口(逻辑删除)
const deleteCheck = (params)=>postAction("/biz/attendance/attendanceDelete",params);
// 导入考勤数据
const importCheck = (params)=>postAction("/biz/attendance/importExcel",params);
// 导出接口
const exportCheck = (params)=>getExport("/biz/attendance/exportXls",params);

// 数据源接口
// 获取数据源列表数据接口(分页)
const getDataSourceList = (params)=>getAction("/ds/conf/list",params);
// 数据源明细接口(分页)
const getDSDetails = (params)=>getAction("/ds/conf/getDsDetailPageList",params);
// 数据源明细接口(不分页)
const getDSDetailsAll = (params)=>postAction("/ds/conf/getDsDetailList",params);

// 收支项分类接口
// 获取列表数据接口(分页)、收支项类型无论是新增、修改还是搜索 参数都为value值
const getREList = (params)=>getAction("/biz/financeCategory/list",params);
// 新增收支项分类接口
const addRE = (params)=>postAction("/biz/financeCategory/financeCategoryCreate",params);
// 修改收支项分类接口
const editRE = (params)=>postAction("/biz/financeCategory/financeCategoryUpdate",params);
// 批量删除收支项分类接口(逻辑删除)
const deleteRE = (params)=>postAction("/biz/financeCategory/financeCategoryDelete",params);
// 收支项名称下拉选择框接口，用于临时收支项和收支规则配置中的下拉框数据
const getREName = (params)=>postAction("/biz/financeCategory/financeCategorySelList",params);

// 临时收支记账接口
// 获取列表数据接口(分页)、收支项名称、临时收支类型无论是新增、修改还是搜索 参数都为value值(id)
const getTemporaryList = (params)=>getAction("/biz/financeTemp/list",params);
// 新增临时收支记账接口
const addTemporary = (params)=>postAction("/biz/financeTemp/financeTempCreate",params);
// 修改临时收支记账接口
const editTemporary = (params)=>postAction("/biz/financeTemp/financeTempUpdate",params);
// 批量删除临时收支记账接口(逻辑删除)
const deleteTemporary = (params)=>postAction("/biz/financeTemp/financeTempDelete",params);
// 临时收支记账导出接口
const exportCheckk = (params)=>getExport("/biz/financeTemp/exportXls",params);
// 下载导入模板
const downTemp = (params)=>getAction('/system/config/list',params)

// 收支规则配置接口
// 获取列表数据接口(分页)
const getRuleList = (params)=>getAction("/biz/financeRule/list",params);
// 新增收支规则配置接口
const addRule = (params)=>postAction("/biz/financeRule/financeRuleCreate",params);
// 修改收支规则配置接口
const editRule = (params)=>postAction("/biz/financeRule/financeRuleUpdate",params);
// 批量删除收支规则配置接口(逻辑删除)
const deleteRule = (params)=>postAction("/biz/financeRule/financeRuleDelete",params);

// 工资支出记账接口
// 工资支出记账列表查询接口（分页）
const getSalaryList = (params)=>getAction("/biz/salaryOutputBill/list",params);
// 删除、批量删除工资支出接口(逻辑删除)
const deleteSalary = (params)=>putAction("/biz/salaryOutputBill/delete",params);
// 导出工资支出记账接口
const exportSalary = (params)=>getAction("/biz/salaryOutputBill/exportXls",params);
// 导入工资支出记账接口
const importSalary = (params)=>getAction("/biz/salaryOutputBill/importExcel",params);

// 指标设置接口
// 获取列表数据接口(分页)
const getIndexList = (params)=>getAction("/biz/targetConf/list",params);
// 新增指标设置接口
const addIndex = (params)=>postAction("/biz/targetConf/targetConfCreate",params);
// 修改指标设置接口
const editIndex = (params)=>postAction("/biz/targetConf/targetConfUpdate",params);
// 批量指标设置接口(逻辑删除)
const deleteIndex = (params)=>postAction("/biz/targetConf/targetConfDelete",params);

// 结算规则配置接口
// 获取列表数据接口(分页)
const getSettlementList = (params)=>getAction("/report/settlementRule/list",params);
// 批量删除接口(逻辑删除)
const deleteSettlement = (params)=>postAction("/report/settlementRule/settlementRuleDelete",params);
// 批量启用、禁用接口
const enableSettlement = (params)=>postAction("/report/settlementRule/updateStatus",params);
// 优先级上下移动接口
const moveSettlement = (params)=>postAction("/report/settlementRule/updatePriority",params);
// 新增结算规则配置接口
const addSettlement = (params)=>postAction("/report/settlementRule/settlementRuleCreate",params);
// 编辑结算规则配置接口
const editSettlement = (params)=>postAction("/report/settlementRule/settlementRuleUpdate",params);
// 获取：编辑功能数据信息
const getSettlement = (params)=>postAction("/report/settlementRule/getSettlementRuleField",params);

// 加价规则
// 获取加价规则列表接口(分页)
const getMarkupList = (params)=>getAction('/biz/express/markup/list',params)
// 新增快递费加价规则
const markupCreate = (params)=>postAction('/biz/express/markup/create',params)
// 修改快递费加价规则接口
const markupUpdate =(params)=>putAction('/biz/express/markup/update',params)
// 批量删除快递费加价规则接口
const markupDelete = (params)=>pingDeleteAction('/biz/express/markup/delete/',params.ids)
// 导出快递费加价规则接口
const markupExport = (params)=>getExport('/biz/express/markup/export',params)

// 结算账单接口
// 获取列表数据接口(分页)
const getBillList = (params)=>getAction("/report/settlementBill/list",params);
// 手动生成账单接口
const manualSettlement = (params)=>postAction("/report/settlementBill/manualSettlementBill",params);
// 结算账单下载接口
const downloadBill = (params)=>getAction("/report/settlementBill/settlementDownload",params);

// 自动结算计划接口
// 获取列表数据接口(分页)
const getPlanList = (params)=>getAction("/report/settlementPlan/list",params);
// 批量删除接口(逻辑删除)
const deletePlan = (params)=>postAction("/report/settlementPlan/settlementPlanDelete",params);
// 批量启用、暂停接口
const enablePlan = (params)=>postAction("/report/settlementPlan/updateStatus",params);
// 获取cron表达式触发时间
const gitCronList = (params)=>postAction("/report/settlementPlan/getNextTriggerList",params);
// 新增自动结算计划接口
const addPlan = (params)=>postAction("/report/settlementPlan/settlementPlanCreate",params);
// 编辑自动结算计划接口
const editPlan = (params)=>postAction("/report/settlementPlan/settlementPlanUpdate",params);

// 基础信息管理接口
// 获取客户列表接口（分页）
const getCustomerList = (params)=>getAction("/basic/customer/list",params);
// 获取客户名称接口
const getCustomerName = (params)=>getAction("/basic/customer/name/list",params);
// 获取货主列表接口（分页）
const getOwnerList = (params)=>getAction("/basic/owner/list",params);
// 获取货主名称接口
const getOwnerName = (params)=>getAction("/basic/owner/name/list",params);
// 获取店铺列表接口（分页）
const getShopList = (params)=>getAction("/basic/shop/list",params);
// 获取店铺名称接口
const getShopName = (params)=>getAction("/basic/shop/name/list",params);
// 获取平台列表接口（分页）
const getplatformList = (params)=>getAction("/basic/platform/list",params);
// 获取平台名称接口
const getplatformName = (params)=>getAction("/basic/platform/name/list",params);
// 获取物流公司列表接口（分页）
const getLogisticsList = (params)=>getAction("/basic/logisticscompany/list",params);
// 获取物流公司名称接口
const getLogisticsName = (params)=>getAction("/basic/logisticscompany/name/list",params);

// 结算规则配置接口
// 修改结算规则接口
const putCustomerModify = (params)=>putAction("/basic/customer/modify",params);
// 获取保底值规则接口（分页）
const getGuaranteedValue = (params)=>getAction("/report/guaranteed/rule/list",params);
// 获取结算规则接口（分页）
const getQuerySettlement = (params)=>getAction("/report/settlement/rule/list",params);
// 获取结算规则详情接口
const getRuleDetails = (params)=>getAction("/report/settlement/rule/detail",params);
// 删除、批量删除结算规则接口
const putDeleteSettlement = (params)=>putAction("/report/settlement/rule/delete",params);
// 启用、禁用结算规则接口
const putEnableDisableSettlement = (params)=>putAction("/report/settlement/rule/status",params);
// 新增结算规则接口
const postNewSettlement = (params)=>postAction("/report/settlement/rule/create",params);
// 修改结算规则接口
const putModifySettlement = (params)=>putAction("/report/settlement/rule/modify",params);
// 获取保底值规则详情接口
const getMinimumvalue = (params)=>getAction("/report/guaranteed/rule/detail",params);
// 新增保底值规则接口
const postMinimumvalue = (params)=>postAction("/report/guaranteed/rule/create",params);
// 修改保底值规则接口
const putMinimumvalue = (params)=>putAction("/report/guaranteed/rule/modify",params);
// 启用、禁用保底值规则接口
const putEnabledisable = (params)=>putAction("/report/guaranteed/rule/status",params);
// 删除、批量删除保底值规则接口
const putMinimumuser = (params)=>putAction("/report/guaranteed/rule/delete",params);
// 导出保底值规则接口
const getMinimumvalueexport = (params)=>getExport("/report/guaranteed/rule/exportXls",params);
// 导出结算规则接口
const getSettlementRuleExport = (params)=>getExport("/report/settlement/rule/exportXls",params);

//快递费结算规则接口
//获取快递费接口（分页）
const getExpressFeeRules = (params)=>getAction("/biz/express/list",params);
// 检查快递费接口
const postExpressFeeCheck = (params)=>postAction("/biz/express/check",params);
//批量启用禁用快递费接口
const putExpressFeeStatus = (params)=>putAction("/biz/express/status",params);
// 新增快递费接口
const postAddExpressFee = (params)=>postAction("/biz/express/create",params);
// 批量删除快递费接口
const putDeleteExpressFee = (params)=>pingDeleteAction("/biz/express/delete/",params.ids);
// 查询快递费详情接口
const getExpressFeeDetail = (params)=>getAction("/biz/express/detail",params);



// 中转HTTP请求
export const transitRESTful = {
  get: (url, parameter) => getAction(getTransitURL(url), parameter),
  post: (url, parameter) => postAction(getTransitURL(url), parameter),
  put: (url, parameter) => putAction(getTransitURL(url), parameter),
  http: (url, parameter) => httpAction(getTransitURL(url), parameter),
}

export {
  addRole,
  editRole,
  checkRoleCode,
  addUser,
  editUser,
  queryUserRole,
  getUserList,
  queryall,
  frozenBatch,
  checkOnlyUser,
  changePassword,
  getPermissionList,
  addPermission,
  editPermission,
  queryTreeList,
  queryListAsync,
  queryRolePermission,
  saveRolePermission,
  queryPermissionsByUser,
  loadAllRoleIds,
  getPermissionRuleList,
  queryPermissionRule,
  queryDepartTreeList,
  queryIdTree,
  queryParentName,
  searchByKeywords,
  deleteByDepartId,
  deleteLog,
  deleteLogList,
  addDict,
  editDict,
  treeList,
  addDictItem,
  editDictItem,
  doReleaseData,
  doReovkeData,
  getLoginfo,
  getVisitInfo,
  queryUserByDepId,
  duplicateCheck,
  queryTreeListForRole,
  getSystemMenuList,
  getSystemSubmenu,
  getSystemSubmenuBatch,
  loadCategoryData,
  checkRuleByCode,
  queryDepartPermission,
  saveDepartPermission,
  queryTreeListForDeptRole,
  queryDeptRolePermission,
  saveDeptRolePermission,
  queryMyDepartTreeList,
  getUserNoticeInfo,
  getDictItemsFromCache,
  getHierarchy,
  createMeter,
  deleteMeter,
  updateMeter,
  getMeterList,
  saveMeter,
  getDataSource,
  getFieldList,
  getMeterHistoryList,
  getMeterDetails,
  setHomepage,
  getHomepage,
  getHeadquarters,
  getRegion,
  getCity,
  getWarehouse,
  getOrganizeAll,
  addOrganize,
  editOrganize,
  deleteOrganize,
  getDeatailsById,
  getWHList,
  createWH,
  editWH,
  deleteWH,
  getCheckWork,
  addCheckWork,
  editCheckWork,
  deleteCheckWork,
  getCheckList,
  addCheck,
  editCheck,
  deleteCheck,
  importCheck,
  exportCheck,
  getDataSourceList,
  getDSDetails,
  getDSDetailsAll,
  getREList,
  addRE,
  editRE,
  deleteRE,
  getREName,
  getTemporaryList,
  addTemporary,
  editTemporary,
  deleteTemporary,
  getRuleList,
  addRule,
  editRule,
  deleteRule,
  getSalaryList,
  deleteSalary,
  exportSalary,
  importSalary,
  getIndexList,
  addIndex,
  editIndex,
  deleteIndex,
  getSettlementList,
  deleteSettlement,
  enableSettlement,
  moveSettlement,
  addSettlement,
  editSettlement,
  getSettlement,
  getBillList,
  manualSettlement,
  downloadBill,
  getPlanList,
  deletePlan,
  enablePlan,
  gitCronList,
  addPlan,
  editPlan,
  getCustomerList,
  getCustomerName,
  getOwnerList,
  getOwnerName,
  getShopList,
  getShopName,
  getplatformList,
  getplatformName,
  getLogisticsList,
  getLogisticsName,
  getGuaranteedValue,
  putCustomerModify,
  getQuerySettlement,
  getRuleDetails,
  putDeleteSettlement,
  putEnableDisableSettlement,
  postNewSettlement,
  putModifySettlement,
  postMinimumvalue,
  putMinimumvalue,
  putEnabledisable,
  getMinimumvalue,
  putMinimumuser,
  getMinimumvalueexport,
  getSettlementRuleExport,
  exportCheckk,
  getSaleList,
  createSale,
  editSale,
  delSale,
  getConfig,
  editConfig,
  getWhweeklyList,
  delWhweekly,
  addOperation,
  editOperation,
  addFinance,
  editFinance,
  handlehweekly,
  downTemp,
  getExpressFeeRules,
  getOrganizeTree,
  getMarkupList,
  markupCreate,
  markupUpdate,
  markupDelete,
  markupExport,
  postExpressFeeCheck,
  putExpressFeeStatus,
  postAddExpressFee,
  putDeleteExpressFee,
  getExpressFeeDetail,
}




